package view.transitions;

import java.awt.image.BufferedImage;

public class FadeInFast extends Animator {

	public FadeInFast(BufferedImage from, BufferedImage to) {
		super(from, to);
	}

	@Override
	public void animate() {
		this.currentFrame++;
		this.overlayOpacity = (float) this.currentFrame / Animator.MAX_FRAMES;
		this.originalOpacity = 1 - (float) this.currentFrame / Animator.MAX_FRAMES;
	}

}
